package com.face.server.entity;

import lombok.Data;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

import javax.validation.constraints.NotNull;

@Document
@Data
public class Camera extends Entity {

    private int dormitoryBuildNum;

    @Indexed(unique = true)
    @NotNull
    private String mac;

    private boolean closed; // true 关闭， false 开启

    private boolean intro; // true进入；false出
}
